<template>
  <div
    style="height: 100%"
    v-cloak>
    <el-config-provider
      :locale="locale"
      :namespace="elNamespace">
      <router-view />
    </el-config-provider>
  </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue'
import { ElConfigProvider } from 'element-plus'
import { elNamespace } from '@/config'
import { getElLocale } from './i18n'

export default defineComponent({
  name: 'App',
  components: {
    ElConfigProvider,
  },
  setup() {
    return {
      locale: getElLocale(),
      elNamespace,
    }
  },
})
</script>
<style lang="scss" scoped>
[v-cloak] {
  display: none;
}
</style>
